package cn.colins.raft.enity;

import cn.colins.raft.rpc.domin.RpcMsgId;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Description 日志Rpc请求
 * @Author czl
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2023/7/19
 */
@Builder
@Data
public class LogIndexPullResult extends RpcMsgId implements Serializable {

    /**
     * 拉取的日志集合
     */
    private List<LogEntity> logEntities;

    public LogIndexPullResult(List<LogEntity> logEntities) {
        this.logEntities = logEntities;
    }
}
